package com.lovepick.bean;

import java.io.Serializable;

import com.lovepick.util.MsgType;

public class MsgItem implements Serializable
{
	private static final long serialVersionUID = 8437167846927760874L;
	private int msgId;
	private String date;
	private String content;
	private MsgType msgType;

	/**
	 * @return the msgId
	 */
	public int getMsgId()
	{
		return msgId;
	}

	/**
	 * @param msgId the msgId to set
	 */
	public void setMsgId(int msgId)
	{
		this.msgId = msgId;
	}

	/**
	 * @return the date
	 */
	public String getDate()
	{
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(String date)
	{
		this.date = date;
	}

	/**
	 * @return the content
	 */
	public String getContent()
	{
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content)
	{
		this.content = content;
	}

	/**
	 * @return the msgType
	 */
	public MsgType getMsgType()
	{
		return msgType;
	}

	/**
	 * @param msgType the msgType to set
	 */
	public void setMsgType(MsgType msgType)
	{
		this.msgType = msgType;
	}

	@Override
	public String toString()
	{
		String str = "";
		str += "{";
		str += "msgId:" + msgId + ",";
		str += "date:" + date + ",";
		str += "content:" + content + ",";
		str += "msgType:" + ((msgType == MsgType.SEND)? "SEND" : "RECEIVE");
		str += "}";

		return str;
	}

}
